import ajax from './index'

//获取小店活动列表
export function activitySearchList(url){
   return ajax.get('/admin/activity/search?'+url)
}
//小店活动详情
export function activityDetail(url,activityId){
  return ajax.get('/admin/activity/'+activityId+'/detail?',url)
}
//删除小店活动
export function activityDeleteType(data,activityId){
  return ajax.post('/admin/activity/' + activityId+'/delete', data)
}

//下架活动
export function activityDownData(activityId,data){
  return ajax.post('/admin/activity/ongoing_activity/'+activityId+'/down',data)
}

//营销插件列表
export function activityMarketToolData(){
  return ajax.get('/admin/activity/marketing_tool/search')
}

//营销插件编辑 
export function   activityMarketToolUpdate(id,data){
  return ajax.post('/admin/activity/marketing_tool/'+id+'/update', data)
}